import Home from '@/components/home'
import Detail from '@/components/detail'
import Main from '@/components/home/main'
import My from '@/components/home/my'
import Video from '@/components/home/video'
import TopLine from '@/components/home/topLine'
import Hot from '@/components/home/hot'
import Recommend from '@/components/home/recommend'
const routes = [
    {
        name:'home',
        path:'/home',
        alias:'/',
        component:Home,
        children:[
            {
                name:'main', 
                path:'/main',
                component:Main,
                meta:{
                    title:'主页',
                    icon:'icon-shouye'
                },
                children:[
                    {
                        name:'recommend',
                        path:'/recommend',
                        component:Recommend,
                        meta:{
                            title:'推荐'
                        },
                    },
                    {
                        name:'hot',
                        path:'/hot',
                        component:Hot,
                        meta:{
                            title:'热点'
                        },
                    }
                ]
               
            },
            {
                name:'video',
                path:'/video',
                component:Video,
                meta:{
                    title:'视频',
                    icon:'icon-xingxing'
                }
               
            },
            {
                name:'topLine',
                path:'/topLine',
                component:TopLine,
                meta:{
                    title:'微头条',
                    icon:'icon-icon-test'
                }
                
            },
            {
                name:'my',
                path:'/my',
                component:My,
                meta:{
                    title:'我的',
                    icon:'icon-lvhang'
                }
                
            }
        ]
    },
    {
        name:'detail',
        path:'/detail',
        component:Detail
    }
]

export default routes